package proxy03;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class HandlerImpl implements InvocationHandler {
	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
	    //System.out.println("invoke方法被调用");
		System.out.println(proxy.getClass());//获取代理类
		System.out.println(proxy.getClass().getSuperclass());//代理类继承的父类
		for (Class<?> i : proxy.getClass().getInterfaces()) {//获取代理类实现的接口
			System.out.println(i);
		}
		System.out.println(method);
		System.out.println(args);
		return null;
	}
}
